package com.applink.sell_proof.fragment.adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;

import com.applink.sell_proof.constant.Constant;
import com.applink.sell_proof.fragment.SupportContactFragment;
import com.applink.sell_proof.fragment.UserSettingFragment;

/**
 * @author Thi Nguyen
 * 
 */
public class CustomerServiceFragmentPagerAdapter extends BaseFragmentPagerAdapter{
	
	private static final String[] TITLES = new String[] {Constant.SUPPORTCONTACT_FRAGMENT, Constant.USER_SETTING_FRAGMENT };
	
	public CustomerServiceFragmentPagerAdapter(FragmentManager fm) {
		super(fm, TITLES);
		// TODO Auto-generated constructor stub
	}
	
	@Override
	public Fragment getItem(int index)
	{		
		switch (index)
		{
			case 0:
				SupportContactFragment supportcontact = new SupportContactFragment();
				mFragments.put(index, supportcontact);
				return supportcontact;
			case 1:
				UserSettingFragment usersetting = new UserSettingFragment();
				mFragments.put(index, usersetting);
				return usersetting;
			
			default:
				return null;
		}
	}
	
}
